NonZeroInt
Represents integers that don't equal 0
.
Constructors
Returns the value as a non-zero int, or throws an IllegalArgumentException if the value equals 0
.
Types
Functions
Divides this value by the other value, truncating the result to an integer that is closer to 0
. Throws an ArithmeticException if the other value equals 0
.
Returns this value as a negative int, or throws an IllegalArgumentException if this value is strictly positive.
Returns the string representation of this value as a not blank string.
Returns this value as a positive int, or throws an IllegalArgumentException if this value is strictly negative.
Returns this value as a strictly negative int, or throws an IllegalArgumentException if this value is strictly positive.
Returns this value as a strictly positive int, or throws an IllegalArgumentException if this value is strictly negative.
Returns the negative of this value.
Returns this value.